package com.ruoyi.comments.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 评论管理对象 comments
 * 
 * @author 王帅涛
 * @date 2024-11-17
 */
public class Comments extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评论id */
    private Long id;

    /** 帖子id */
    @Excel(name = "帖子id")
    private Long postId;

    /** 评论者id */
    @Excel(name = "评论者id")
    private Long userId;

    /** 回复的评论 ID */
    @Excel(name = "回复的评论 ID")
    private Long repliedCommentId;

    /** 父评论id */
    @Excel(name = "父评论id")
    private Long fatherId;

    /** 接收者id */
    @Excel(name = "接收者id")
    private Long receiverId;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPostId(Long postId) 
    {
        this.postId = postId;
    }

    public Long getPostId() 
    {
        return postId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setRepliedCommentId(Long repliedCommentId) 
    {
        this.repliedCommentId = repliedCommentId;
    }

    public Long getRepliedCommentId() 
    {
        return repliedCommentId;
    }
    public void setFatherId(Long fatherId) 
    {
        this.fatherId = fatherId;
    }

    public Long getFatherId() 
    {
        return fatherId;
    }
    public void setReceiverId(Long receiverId) 
    {
        this.receiverId = receiverId;
    }

    public Long getReceiverId() 
    {
        return receiverId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("postId", getPostId())
            .append("userId", getUserId())
            .append("repliedCommentId", getRepliedCommentId())
            .append("fatherId", getFatherId())
            .append("receiverId", getReceiverId())
            .append("content", getContent())
            .append("createTime", getCreateTime())
            .toString();
    }
}
